第 7 步:我们为点击事件制作了一个占位符函数,但在开始游戏之前我们不会使用它。

  • ,在add_click_event()下拖入Define Function with Docstring
  • my_function()重命名为play_game()
  • 将新函数的文档字符串更改为: """Creates an interval event to start the game"""
  • 按此顺序将以下参数添加到play_game()my_display , my_dictionary

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)